package com.example.tyustgrade2019.controller;

import com.example.tyustgrade2019.entity.Lawyer;
import com.example.tyustgrade2019.service.LawyerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname LawyerController
 * @Description TODO
 * @Copyright:Copyright(c) 2021
 * @Company 英才汇硕信息科技有限公司
 * @Author zhang
 * @Version 1.0
 * @Date 2023/1/2 10:57
 */
@Controller
public class LawyerController {
    @Autowired
    LawyerService lawyerService;
    @RequestMapping("/addLawyer")
    public String addLawyer(Lawyer lawyer){
        lawyerService.addLawyer(lawyer);
        return "success";
    }
}
